﻿using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.System.Dtos.Province
{
    public class ProvinceCrInput
    {
        /// <summary>
        /// 描述
        /// </summary>
        [Required(ErrorMessage = "描述不能为空")]
        public string description { get; set; }
        /// <summary>
        /// 区域编号
        /// </summary>
        [Required(ErrorMessage = "区域编号不能为空")]
        public string enCode { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Required(ErrorMessage = "状态不能为空")]
        public int enabledMark { get; set; }
        /// <summary>
        /// 区域名称
        /// </summary>
        [Required(ErrorMessage = "区域名称不能为空")]
        public string fullName { get; set; }
        /// <summary>
        /// 区域上级
        /// </summary>
        [Required(ErrorMessage = "区域上级不能为空")]
        public string parentId { get; set; }
        public long? sortCode { get; set; }
    }
}
